//package com.shop.clientorder.consumer;
//
//import com.shop.clientorder.domain.OmsOrder;
//import com.shop.clientorder.service.IOmsOrderService;
//import com.shop.common.redis.service.RedisService;
//import org.springframework.amqp.rabbit.annotation.Queue;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Author：作者姓名
// * @Package：com.shop.clientorder.consumer
// * @Project：e-commerce-services
// * @name：PaymentsCount
// * @Date：2024/7/7 9:15
// */
//@Component
//public class PaymentsConsumer {
//    @Autowired
//    private IOmsOrderService orderService;
//    @Autowired
//    private RedisService redisService;
//    @RabbitListener(queuesToDeclare = @Queue("PAYMENTS"))
//    public void payments(OmsOrder omsOrder){
//        Integer status=orderService.findOrderStatusByOrderSn(omsOrder.getOrderSn());
//        if (status==0){
//            orderService.updateOrder(omsOrder.getOrderSn());
//        }
//    }
//}
